<?php
/**
 * Created by IntelliJ IDEA.
 * User: dhy
 * Date: 2015/9/11
 * Time: 16:24
 */

namespace App\Http\Controllers;

use Illuminate\Http\Request;


class UserController extends Controller{

    public function showProfile(Request $request,$username){
        echo $username;
        print_r($request->all());
        echo $request->input('id');
//        return view("greeting",["name"=>"dhyhaha"]);
        return view("greeting")->withName('dinghaiyun')->withAge(18);

    }
}